<?php
namespace app\index\controller;

use think\Controller;
use think\facade\Cookie;

/**
 * Created by liuyang.
 * Class Main
 * @package app\index\controller
 */
class Main extends Controller
{

    public function index()
    {
        if (!Cookie::has('userid')) {
            $this->redirect('index/index/index');
        }
        return $this->fetch('index/main');
    }




}
